export default {
  name: 'todayList',
  props: {
    modelData: {}
  },
  data() {
    return {
      assort: ['待接收', '执行中', '已执行'],
      duty: ['负责', '配合', '参与'],
      effect: '影响运营',
      expired: '超时',
      statusList: ['待接收', '执行中', '待审核', '完成', '失败']
    }
  },
  computed: {
    assortCount() {
      let arr = new Array(this.assort.length);
      arr.fill(0);
      try {
        this.modelData.data.forEach(o => {
          for (let i in arr) {
            if (o.status === Number(i)) {
              arr[i] += 1
            } else if(Number(i)===arr.length-1 && o.status>Number(i)) {
              arr[arr.length-1] += 1
            }
          }
        })
        return arr     
      } catch(err) {
        return arr
      }
    }
  }
}